#include "push_stream.h"

namespace xrtc {

PushStream::PushStream(EventLoop *el, PortAllocator* allocator, uint64_t uid, 
            const std::string &stream_name, bool audio, bool video, uint32_t log_id)
                    : RtcStream(el, allocator, uid, stream_name, audio, video, log_id) {

}

std::string PushStream::createOffer() {
    RTCOfferAnswerOptions options;
    // 客户端只推流，服务端只拉流
    options.send_audio = false;
    options.send_video = false;

    options.recv_audio = m_audio;
    options.recv_video = m_video;
    return m_pc->createOffer(options);
}

}
